<!--老师端已审核周报详情-->
<!DOCTYPE html>
<html class="base_gary_bg_color">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>老师端周报列表详情</title>
		<script src="../../script/mui.min.js"></script>
		<script src="../../script/jquery.min.js" type="text/javascript"></script>
		<script src="../../script/timecontrol.min.js"></script>
		<script src="../../script/common.js"></script>
		<link rel="stylesheet" href="../../css/mui.min.css" />
		<link rel="stylesheet" href="../../css/timecontrol.min.css" />
		<!--<link rel="stylesheet" href="../../css/CFNetPP_Base.css">-->
		<link rel="stylesheet" href="../../css/base.css"/>
		<script type="text/javascript" charset="utf-8">
			mui.init();
		</script>
		<style>
		</style>
	</head>
	<body class="base_gary_bg_color">
		<div class="base_style_color " id='BarAppearance' style="height: 22px;width: 100%"></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar" style="position: fixed;left: 0px;top: 20px;">
			<div class="base_navigation_bar base_style_color base_navigation_item_bar">
				<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
				<span id="weekly_title">查看周报</span>
				<a class="base_right_item base_hide_item" href="#"> </a>
			</div>
		</div>
		<div class="base_content_div writeReport">
			<div class="ReviewWeekly_div top_54" >
				<ul class="mui-table-view">
					<li class="mui-table-view-cell base_dark_grey" id="timediv_one" style="display: none">
						<div class="cell_left_img_div">
							<img class="cell_img" src="../../image/icon_clock.png" alt="">
						</div>
						<span class="time_span base_title_font" > 应交日期:</span>
						<span class="time_span base_title_font" id="weeklytime"> </span>
					</li>
					<li class="mui-table-view-cell base_dark_grey" id="timediv_two">
						<div class="cell_left_img_div">
							<img class="cell_img" src="../../image/icon_clock.png" alt="">
						</div>
						<span class="time_span base_title_font" > 提交日期:</span>
						<span class="time_span base_title_font" id="time"> </span>
					</li>
				</ul>
			</div>
			<div class="ReviewWeekly_div">
				<!--<p class="title titlepos">
				本周总结
				</p>
				<div class="ReviewWeekly_des base_content_font base_grey" id="summary">
				<!--本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周,本周是充实的一周.-->
				<!--</div>-->
				<div class="feeling">
					<p class="title">
						本周总结
					</p>
					<div class="feeling-text">
						<p id="summary" style=" word-break: break-all">
							<!--四大美女四大金刚的感觉金黄色的个结婚吗三等功三毒黄瓜斌和慕斯蛋糕设计的大概是谁没打过啥都没干后没你事海水倒灌金黄色的个吧们。三等功金黄色的个吧内部石膏板南京蛤蟆上个班是几十个喜欢订的高科技四大金刚后第三款估计明年。-->
						</p>
					</div>
				</div>
			</div>
			<div class="ReviewWeekly_div">
				<div class="feeling">
					<p class="title">
						下周计划
					</p>
					<div class="feeling-text">
						<p id="weekplan" style=" word-break: break-all">
							<!--四大美女四大金刚的感觉金黄色的个结婚吗三等功三毒黄瓜斌和慕斯蛋糕设计的大概是谁没打过啥都没干后没你事海水倒灌金黄色的个吧们。三等功金黄色的个吧内部石膏板南京蛤蟆上个班是几十个喜欢订的高科技四大金刚后第三款估计明年。-->
							<!--死亡诗社-->
						</p>
					</div>
				</div>
			</div>
			<div class="ReviewWeekly_div">
				<div class="feeling">
					<p class="title">
						老师评语
					</p>
					<div class="feeling-text">
						<p id="comment" style=" word-break: break-all">
							<!--四大美女四大金刚的感觉金黄色的个结婚吗三等功三毒黄瓜斌和慕斯蛋糕设计的大概是谁没打过啥都没干后没你事海水倒灌金黄色的个吧们。三等功金黄色的个吧内部石膏板南京蛤蟆上个班是几十个喜欢订的高科技四大金刚后第三款估计明年。-->
						</p>
					</div>
				</div>
			</div>
		</div>
		</div>
	</body>
	<script src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript" src="../../script/base64.min.js"></script>
	<script type="text/javascript" src="../../script/copyTool.js"></script>
	<script type="text/javascript">
		var weeklyid = '';
		apiready = function() {
			SendBehaviorTrajectoriesNotifi1('0', '老师端周报列表详情', '105', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			var pageParam = api.pageParam;
			weeklyid = pageParam.weeklyid;
			loadWeeklyData();
			blockAddCopyClickWithIdArr(["summary","weekplan"]);
		}
		//获取周报详情数据
		function loadWeeklyData() {
			var param = {
				weeklyid : weeklyid //未审核状态的周报列表
			};
			cfnetppPOST(urlLswklist, param, true, function(data, status) {
			
				if (status == 'success') {
					if (data.status == 1) {
						var list = data.json;
						if (list != null) {
							var name = list.rename1;
							$('#weekly_title').text(name + "的周报");
							var weeklytime = parseInt(list.weeklytime);
							var comments = list.comments;
							var time = parseInt(list.time);
							var weeklyStr = getLocalTime(weeklytime);
							if (isSameWeek(weeklytime, time) == true) {
								$('#time').text(getLocalTime(weeklytime));
								$('#timediv_one').hide();
							} else {
								$('#timediv_one').show();
								$('#time').text(getLocalTime(time));
								$('#weeklytime').text(weeklyStr);
							}
							$('#summary').text(isString(Base64.decode(list.summary)));
							$('#weekplan').text(isString(Base64.decode(list.weekplan)));
							var spanstate = list.reviewstatus;
							if (spanstate == 1) {
								if (comments.length != 0) {
									$('#comment').text(Base64.decode(comments));
								} else {
									$('#comment').text('无评语');
								}
							} else {
							}
						} else {
							api.toast({
								msg : '获取数据失败',
								duration : 2000,
								location : 'bottom'
							});
						}
					} else {
						api.toast({
							msg : '获取数据失败',
							duration : 2000,
							location : 'bottom'
						});
					}
				} else {
					api.toast({
						msg : '网络连接失败',
						duration : 2000,
						location : 'bottom'
					});
				}
			});
		}

		function backClick() {
			SendBehaviorTrajectoriesNotifi1('1', '老师端周报列表详情', '105', api.pageParam.sourceurl, api.pageParam.sourcetitle, window.location.pathname, document.title);
			api.closeWin();
		}

		//		//时间戳转化为正常时间
		//		function getLocalTime(x) {
		//			var now = new Date(parseInt(x) * 1000);
		//			var year = now.getFullYear();
		//			var month = now.getMonth() + 1;
		//			var date = now.getDate();
		//			return year + "-" + month + "-" + date;
		//		}
	</script>
</html>